home *** CD-ROM | disk | FTP | other *** search
- Path: connix.com!news
- From: Scott Hawley <shawley@connix.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Help with Code
- Date: Fri, 23 Feb 1996 00:14:07 -0800
- Organization: SHAWLEY SYSTEMS
- Message-ID: <312D774F.6A2D@connix.com>
- References: <4gi3l1$kou@news.voicenet.com> <312C746B.50DA@azstarnet.com>
- NNTP-Posting-Host: shawley.connix.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I did the two changes below and it workd fine.
-
-
- #include <iostream> << Change this
- #include <iostream.h> <<< to This
- void main()
- {
- enum Days { Sunday, Monday, Tuesday, Wednesday,
- Thursday, Friday, Saturday };
-
- Days DayOff; << Change this
- int DayOff << to this
-
- cout << "What day would you like off (0-6)? ";
- cin >> DayOff;
-
- if (DayOff == Sunday || DayOff == Saturday)
- cout << "\nYou're already off on weekends!\n";
- else
- cout << "\nOkay, I'll put in the vacation day.\n";
- }
-